* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 12px;
    font-family: "微软雅黑";
    color: #666;
}

a {
    text-decoration: none;
}

ul li {
    list-style: none;
}

.content {
    margin-left: 200px;
}

.header {
    width: 100%;
    height: 56px;
    background: #2f3437;
    position: relative;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    width: 200px;
    height: 100%;
    background: #282828;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}

.navbar ul {
    list-style: none;
}

.navbar ul li {
    border-bottom: 1px solid #000;
}

.navbar ul li a {
    display: block;
    padding: 16px 30px;
    color: white;
}

.navbar ul li a:hover {
    background-color: #28b779;
}

.navbar ul .active a {
    background: #28b779;
}

.main-content {
    margin-top: 20px;
    padding: 20px;
    background-color: #f3f4f5;
}

.dropdown-menu {
    display: none;
    background-color: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.dropdown-menu a {
    padding: 8px 16px;
    display: block;
    color: black;
}

.dropdown-menu a:hover {
    background-color: #ddd;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-menu {
    position: absolute; /* 绝对定位，或者可以使用 relative 定位 */
    left: 90%; /* 使其靠左 */
    cursor: pointer;
}

.user-menu:hover .dropdown-menu {
    display: block;
    position: absolute;
    left: 0; /* 确保下拉菜单与 .user-menu 的左边缘对齐 */
}
/* FadeIn Effect for content */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-content {
    animation: fadeIn 0.5s forwards;
}

/* Responsive Styles */
@media (max-width: 1360px) {
    .navbar {
        width: 50px;
    }

    .navbar ul li a {
        padding: 12px;
    }

    .navbar ul li a span {
        display: none;
    }

    .header {
        height: 50px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        width: 60px;
    }

    .navbar ul li a {
        padding: 12px;
    }

    .navbar ul li a span {
        display: none;
    }

    .header {
        height: 50px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }
}